# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
_pyname="django-celery-results"
pkgname=py3-$_pyname
pkgver=2.5.1
pkgrel=0
arch="noarch !s390x" # Missing py3-celery depend
pkgdesc="Celery result backends for Django."
url="https://pypi.python.org/project/django-celery-results"
license="BSD-3-Clause"
depends="
	py3-django
	py3-celery
	"
makedepends="
	py3-setuptools
	py3-gpep517
	py3-wheel
	"
checkdepends="
	py3-pytest
	py3-pytest-django
	py3-pytest-benchmark
	py3-pytest-cov
	py3-pytz
	py3-psycopg2
	py3-pyscopg
	py3-case
	"
options="!check" # Broken testsuite
source="$pkgname-$pkgver.tar.gz::https://pypi.io/packages/source/d/django-celery-results/django_celery_results-$pkgver.tar.gz"
builddir="$srcdir"/django_celery_results-$pkgver
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	python3 manage.py test
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
2da39098a36847ab171a0758b37daafd0a7e17c905b599efebb582226a7adce5f1b5b941bd59db29e5d502d896f8474d2b9771454ef409cdef03b952f0a42526  py3-django-celery-results-2.5.1.tar.gz
"
